package com.eason.demo2;

public class Client {
    public static void main(String[] args) {
        Host host = new Host();

        //代理角色
        ProxyInvocationHandler pro = new ProxyInvocationHandler();

        pro.setRent(host);
        Rent proxy = (Rent) pro.getProxy();
        proxy.rent();
    }
}
